"""
class Cat:
    def __init__(self):
        self.name1 = '大狗旺财'
        self.age1 ='3岁'
        self.name2 = '二狗狗蛋'
        self.age2 = '2岁'


cat1 = Cat()
cat2 = Cat()
print(cat1.name1,end='今年')
print(cat1.age1)

print(cat2.name2,end='今年')
print(cat2.age2)
"""
class Cat:
    def __init__(self,name,hobby):
        self.name =name
        self.hobby =hobby
    def talk(self):
        print(f'我的名字是{self.name},我的爱好是{self.hobby}')

cat1 =Cat('旺财','吃屎')
cat1.talk()







